package com.atguigu.gulimall.product.service;

import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.BrandEntity;
import com.atguigu.gulimall.product.entity.CategoryBrandRelationEntity;
import com.atguigu.gulimall.product.entity.CategoryEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author tianfengbo
 * @email tianfengbo@gmail.com
 * @date 2021-06-10 16:39:35
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void save(Long brandId, Long catelogId);

    void updateBrand(BrandEntity brand);

    void updateCate(CategoryEntity category);

    List<BrandEntity> getBrandsByCatId(Long catId);
}

